@import "../../assets/css/theme.less";
#Index {
  background-color: @theme_color;
  background-image: @theme_img;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 10px;
  width: 0;
  height: calc(100% - 6px);
  overflow: hidden;
  flex-grow: 1;
  margin: 3px;
  box-shadow: 0 0 6px #999;
  display: flex;
  flex-direction: column;
  transition: all 0.1s;
  position: relative;
  &.maximize {
    margin: 0;
    height: 100%;
    border-radius: 0px;
  }
  .topBar {
    height: 60px;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    .logo {
      font-size: 22px;
      height: 60px;
      color: @logo_color;
      line-height: 46px;
      -webkit-app-region: no-drag;
      margin-left: 0px;
      cursor: pointer;
      &:hover{
        text-shadow: 0 0 4px @logo_color;
      }
      i {
        position: relative;
        top: 6px;
      }
    }
    .option {
      height: 60px;
      display: flex;
      align-items: center;
      padding-right: 10px;
      .items {
        -webkit-app-region: no-drag;
        margin-right: 5px;
        height: 30px;
        line-height: 30px;
        opacity: 1;
        cursor: pointer;
        width: 30px;
        text-align: center;
        i {
          color: #fff;
          font-size: 18px;
        }
        &:hover {
          opacity: 0.5;
        }
        &.close:hover {
          opacity: 1;
          i {
            color: red;
            font-weight: 600;
          }
        }
      }
    }
    .chat_opt {
      display: flex;
      justify-content: center;
      flex-grow: 1;
      .swicth {
        display: flex;
        align-items: center;
        .item {
          margin: 0 15px;
          -webkit-app-region: no-drag;
          width: 48px;
          display: flex;
          align-items: center;
          flex-direction: column;
          color: #fff;
          font-size: 0;
          cursor: pointer;
          opacity: 1;
          &.active{
            opacity: 1;
          }
          i {
            display: inline-block;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: #fff;
            color: @theme_color;
            text-align: center;
            line-height: 30px;
            font-size: 20px;
          }
        }
        span {
          font-size: 12px;
        }
      }
      .statis {
        display: flex;
        flex-direction: row;
        color: #fff;
        .item {
          display: flex;
          flex-direction: column;
          text-align: center;
          margin: 0 10px;
          align-content: center;
          justify-content: center;
          span {
            font-size: 12px;
            line-height: 14px;
          }
          b {
            font-size: 18px;
            font-weight: 400;
            line-height: 20px;
          }
        }
      }
      @media screen and (max-width: 780px) {
        .statis {
          display: none;
        }
      }
    }
  }
  .contents {
    flex-grow: 1;
    background: #fff;
    height: 0;
    border-radius: 10px 10px 0 0;
    display: flex;
    .kefu_list {
      width: 0;
      flex-grow: 10;
      height: 100%;
      min-width: 90px;
      background: #e6e6e6;
      border-radius: 10px 0 0 0;
      display: flex;
      flex-direction: column;
      .addcsuser {
        flex-basis: 30px;
        flex-shrink: 0;
        border-radius: 10px 0 0 0;
        display: flex;
        align-items: center;
        justify-content: center;
        span {
          -webkit-app-region: no-drag;
          font-size: 14px;
          line-height: 16px;
          display: inline-block;
          cursor: pointer;
          i{
            position: relative;
            top:1px;
          }
          &:hover{
            color:@theme_color;
          }
        }
      }
      .csuser_list {
        flex-grow: 1;
        height: 0;
        padding:3px;
        margin-bottom: 15px;
        overflow: hidden;
        overflow-y: auto;
      }
    }
    .chat_box {
      width: 0;
      flex-grow: 90;
      border-radius: 0 10px 0 0;
      background-image: url('../../assets/images/loading.svg');
      background-repeat: no-repeat;
      background-position: center;
      background-size: 150px 150px;
    }
  }
  .maskbox{
    position: absolute;
    top:60px;left:0px;
    background:rgba(0,0,0,0.5);
    bottom:0;right:0;z-index: 999;
    border-radius: 10px;
    -webkit-app-region: no-drag;
  }
  .taskbox{
    position: absolute;
    -webkit-app-region: no-drag;
    border-radius:0 10px 10px 0;
    z-index: 1000;
    top:60px;right:0;bottom:0;
    width:300px;
    background:#fff;
    padding:1px 0;
    overflow: hidden;
    overflow-y: auto;
    .items{
      &.mass{
        margin:10px;
        box-shadow: 0 0 3px #adadad;
        border-radius:2px;
        padding:5px;
        .title{
          font-size: 14px;
          span{
            padding-left: 5px;
            font-size: 12px;
          }
        }
      }
    }
  }
}
.fade-enter-active, .fade-leave-active {
  transition: opacity .5s;
}
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
  opacity: 0;
}
.left-enter-active, .left-leave-active {
  transition: left .5s;
}
.left-enter, .left-leave-to /* .fade-leave-active below version 2.1.8 */ {
  left: -300px;
}